<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.yztc.rc.api.framework.manager.UserManager" %>
<%@ page import="com.yztc.rc.api.framework.entity.UserAccount" %>
<%@ page import="net.ssta.common.DataBaseConfig" %>
<%@page import="net.ssta.common.LoginUser"%>
<%
	String path = request.getContextPath();

	String userId=LoginUser.getUserId();
    String flag=request.getParameter("flag");
    
    
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <META http-equiv=Content-Type content="text/html; charset=utf-8" />
    <META http-equiv=x-ua-compatible content=ie=7 />
    <META content="MSHTML 6.00.6000.17107" name=GENERATOR />
    <link href="<%=path%>/common/css/layout.css" rel="stylesheet" type="text/css" />
	<link href="<%=path%>/common/css/user.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%=path%>/includes/styleBase/js/jquery.js"></script>

 
<title>重置密码</title>
 
<script type="text/javascript">


$(document).ready(function()
{  
     if("<%=flag%>"=="true"){
	    alert("重置密码成功!");
	}
});


function checkForm(){
   var v1=$("#pwd1").val();
   var v2=$("#pwd2").val();
   if(v1==""){
      alert("请填写密码！");
      return false;
   }
   if(v1!=v2){
      alert("两次输入的密码不一样！");
      return false;
   }
   document.pwdFrom.submit();
   return true;
}        
 
  
</script>



<style>
body, html {
	margin:0;
	padding:0;
}
	.ctable{
		font-size:12px;
		cellPadding:0px;
		cellSpacing:0px;
		background-color:#F6F9FF;
		
		} 
 
		.ctable tr{
		height:24px; 
		} 
		.ctable tr td{ 
		border:0px;
		border-top:1px #99bbe8 solid; 
		border-right:1px #99bbe8 solid;
		padding:5px; 
		vertical-align:middle;
		}
</style>


</head>
<body>


<%@include file="../common/toplogin.jsp"%>    
<%@include file="../common/topbanner.jsp"%> 
<%@include file="../common/topmenu.jsp"%> 



<div id="contentmain">

<%@include file="include/baseConfig.jsp"%> 


 
 <div id="content_right">
       <jsp:include   page="./include/baseTop.jsp"    flush="true">   
		      <jsp:param    name="open"    value="1"    />   
		</jsp:include>
				
				
	
		<form id="search" action="<%=path %>/register?method=resetPwd"  name="pwdFrom" method="post">
		<input type="hidden"  maxlength="20" style="width:120px;" class="textInput" value="<%=userId %>" name="userId"/>
		
		<div class="multiEditPanel" style="border:0;padding:10px;width:90%;padding-left:20px;">
		  <table cellpadding="0" align="center" cellspacing="0" width="80%" border="0" class="ctable" style="border-left:1px solid #99bbe8;border-bottom:1px solid #99bbe8;border-right:0px solid red;">
		     <tr>
		      <td  width="40%">新密码：</td>
		      <td   >
				<input type="password"  maxlength="20" name="password" style="width:120px;" class="textInput" id="pwd1"/>
			  </td>
		    </tr>
		    <tr >
		      <td>重复密码：</td>
		      <td>
			  	<input type="password"  maxlength="20" style="width:120px;" class="textInput" id="pwd2" />
			  </td>	
		    </tr>
		    
		  </table>
		  <br/>
		   <center>
			   <input type="button" value="确定" onclick="checkForm();"/>
			  </center>
			  
		</div>
		</form>


  </div>
  </div>
 <%@include file="../../common/bottom.jsp"%>    
</body> 
</html>